package com.example.concurrent;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "c.test6")
public class Test6 {

	public static void main(String[] args) {
		Thread t1 = new Thread("t1") {
			public void run() {
				try {
					Thread.sleep(2000);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			};
		};
		t1.start();
		log.debug("t1 state : {}",t1.getState());
		try {
			Thread.sleep(500);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		log.debug("t1 state : {}",t1.getState());
	}
}
//